<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersmsgs['navigation.back']}" action="/jsf/tiers/listTierss.xhtml"/>
		
			<p:panel header="#{tiersmsgs['tiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{tiersmsgs['tiers.tietiers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieTiers}"/>
						<h:outputText value="#{tiersmsgs['tiers.tieidentclient.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieIdentClient}"/>
						<h:outputText value="#{tiersmsgs['tiers.tietypetiers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieTypeTiers}"/>
						<h:outputText value="#{tiersmsgs['tiers.tielibexterne.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieLibExterne}"/>
						<h:outputText value="#{tiersmsgs['tiers.tienationalite.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieNationalite}"/>
						<h:outputText value="#{tiersmsgs['tiers.tietelfix.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieTelFix}"/>
						<h:outputText value="#{tiersmsgs['tiers.tietelbureau.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieTelBureau}"/>
						<h:outputText value="#{tiersmsgs['tiers.tietelportable.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieTelPortable}"/>
						<h:outputText value="#{tiersmsgs['tiers.tiefax.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieFax}"/>
						<h:outputText value="#{tiersmsgs['tiers.tieemail.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieEMail}"/>
						<h:outputText value="#{tiersmsgs['tiers.tiedatecreation.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieDateCreation}"  converter="dateConverterForCalendar" />
						<h:outputText value="#{tiersmsgs['tiers.tieusercreation.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.tieUserCreation}"/>
				</h:panelGrid>
			</p:panel>

			<p:panel header="#{tiersmsgs['relationstiers.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersRelationsTiersesForRltTiersParent(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="relationsTiersesForRltTiersParent" value="#{TiersComponent.listTiersRelationsTiersesForRltTiersParent(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersRelationsTiersesForRltTiersParent(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersRelationsTiersesForRltTiersParent(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersRelationsTiersesForRltTiersParent(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rlttiersparent.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltTiersParent}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rlttiersfils.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltTiersFils}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltrelation.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltRelation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltsens.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltSens}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltdatedebut.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltDateDebut}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltdatefin.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltDateFin}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['patient.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersPatients(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="patients" value="#{TiersComponent.listTiersPatients(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersPatients(TiersComponent.tiers.tieTiers, current.patPatient)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersPatients(TiersComponent.tiers.tieTiers, current.patPatient)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersPatients(TiersComponent.tiers.tieTiers, current.patPatient)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patpatient.title']}" />
					</f:facet>
							<h:outputText value="#{current.patPatient}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patdateentree.title']}" />
					</f:facet>
							<h:outputText value="#{current.patDateEntree}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.pattelcontact.title']}" />
					</f:facet>
							<h:outputText value="#{current.patTelContact}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patdivers.title']}" />
					</f:facet>
							<h:outputText value="#{current.patDivers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patdatesortie.title']}" />
					</f:facet>
							<h:outputText value="#{current.patDateSortie}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.pataxemedical.title']}" />
					</f:facet>
							<h:outputText value="#{current.patAxeMedical}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patsousaxemedical.title']}" />
					</f:facet>
							<h:outputText value="#{current.patSousAxeMedical}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patmotifsortie.title']}" />
					</f:facet>
							<h:outputText value="#{current.patMotifSortie}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patdiagnostic.title']}" />
					</f:facet>
							<h:outputText value="#{current.patDiagnostic}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['patient.patdatedernierevisite.title']}" />
					</f:facet>
							<h:outputText value="#{current.patDateDerniereVisite}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['caractpp.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="caractPP" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPP != null}" >
					<h:outputText value="#{tiersmsgs['caractpp.cpptiers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppTiers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppsexe.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppSexe}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppqualite.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppQualite}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnompers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppNomPers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppprenompers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppPrenomPers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnomjeunefille.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppNomJeuneFille}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppdatenaissance.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppDateNaissance}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppcsp.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppCsp}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppregimesocial.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppRegimeSocial}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppcodeprofession.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppCodeProfession}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppsituationfamille.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppSituationFamille}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnombreenfants.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppNombreEnfants}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnif.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppNif}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppdatesituation.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppDateSituation}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppdateetatphysique.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppDateEtatPhysique}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppetatphysique.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPP.cppEtatPhysique}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPP != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.edit']}" action="#{TiersComponent.editTiersCaractPP(TiersComponent.tiers.tieTiers, TiersComponent.tiers.caractPP.cppTiers)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.delete']}" action="#{TiersComponent.confirmDeleteTiersCaractPP(TiersComponent.tiers.tieTiers, TiersComponent.tiers.caractPP.cppTiers)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPP == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersCaractPP(TiersComponent.tiers.tieTiers)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{tiersmsgs['adherent.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersAdherents(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="adherents" value="#{TiersComponent.listTiersAdherents(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersAdherents(TiersComponent.tiers.tieTiers, current.adhId)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersAdherents(TiersComponent.tiers.tieTiers, current.adhId)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersAdherents(TiersComponent.tiers.tieTiers, current.adhId)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhid.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhId}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhcin.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhCin}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhimmatriculation.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhImmatriculation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhaffiliation.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhAffiliation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhdateaffiliation.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhDateAffiliation}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhpension.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhPension}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['adherent.adhsom.title']}" />
					</f:facet>
							<h:outputText value="#{current.adhSom}"/>
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['tiersmodif.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersTiersModifs(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="tiersModifs" value="#{TiersComponent.listTiersTiersModifs(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersTiersModifs(TiersComponent.tiers.tieTiers, current.tmoTiers, current.tmoNomChampModif, current.tmoDateModification)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersTiersModifs(TiersComponent.tiers.tieTiers, current.tmoTiers, current.tmoNomChampModif, current.tmoDateModification)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersTiersModifs(TiersComponent.tiers.tieTiers, current.tmoTiers, current.tmoNomChampModif, current.tmoDateModification)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['tiersmodif.tmotiers.title']}" />
					</f:facet>
							<h:outputText value="#{current.tmoTiers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['tiersmodif.tmonomchampmodif.title']}" />
					</f:facet>
							<h:outputText value="#{current.tmoNomChampModif}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['tiersmodif.tmodatemodification.title']}" />
					</f:facet>
							<h:outputText value="#{current.tmoDateModification}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['tiersmodif.tmoancienneval.title']}" />
					</f:facet>
							<h:outputText value="#{current.tmoAncienneVal}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['tiersmodif.tmonouvelleval.title']}" />
					</f:facet>
							<h:outputText value="#{current.tmoNouvelleVal}"/>
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['rolestiers.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersRolesTierses(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="rolesTierses" value="#{TiersComponent.listTiersRolesTierses(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersRolesTierses(TiersComponent.tiers.tieTiers, current.rotRole, current.rotTiers)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersRolesTierses(TiersComponent.tiers.tieTiers, current.rotRole, current.rotTiers)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersRolesTierses(TiersComponent.tiers.tieTiers, current.rotRole, current.rotTiers)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['rolestiers.rotrole.title']}" />
					</f:facet>
							<h:outputText value="#{current.rotRole}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['rolestiers.rottiers.title']}" />
					</f:facet>
							<h:outputText value="#{current.rotTiers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['rolestiers.rotdescriptif.title']}" />
					</f:facet>
							<h:outputText value="#{current.rotDescriptif}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['rolestiers.rotdatedebut.title']}" />
					</f:facet>
							<h:outputText value="#{current.rotDateDebut}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['rolestiers.rotdatefin.title']}" />
					</f:facet>
							<h:outputText value="#{current.rotDateFin}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['caractpm.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="caractPM" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPM != null}" >
					<h:outputText value="#{tiersmsgs['caractpm.cpmtiers.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmTiers}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmnomsociete.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmNomSociete}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmformejuridique.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmFormeJuridique}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmcodenaf.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmCodeNaf}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmsiren.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmSiren}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmsiret.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmSiret}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmtierscontact.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmTiersContact}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmqualitesociete.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmQualiteSociete}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmetatsociete.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmEtatSociete}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmchiffreaffaire.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmChiffreAffaire}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmnbrsalarier.title']}:" />
							<h:outputText value="#{TiersComponent.tiers.caractPM.cpmNbrSalarier}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPM != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.edit']}" action="#{TiersComponent.editTiersCaractPM(TiersComponent.tiers.tieTiers, TiersComponent.tiers.caractPM.cpmTiers)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.delete']}" action="#{TiersComponent.confirmDeleteTiersCaractPM(TiersComponent.tiers.tieTiers, TiersComponent.tiers.caractPM.cpmTiers)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{TiersComponent.tiers.caractPM == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersCaractPM(TiersComponent.tiers.tieTiers)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{tiersmsgs['relationstiers.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersRelationsTiersesForRltTiersFils(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="relationsTiersesForRltTiersFils" value="#{TiersComponent.listTiersRelationsTiersesForRltTiersFils(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersRelationsTiersesForRltTiersFils(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersRelationsTiersesForRltTiersFils(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersRelationsTiersesForRltTiersFils(TiersComponent.tiers.tieTiers, current.rltTiersParent, current.rltTiersFils, current.rltRelation)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rlttiersparent.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltTiersParent}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rlttiersfils.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltTiersFils}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltrelation.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltRelation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltsens.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltSens}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltdatedebut.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltDateDebut}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['relationstiers.rltdatefin.title']}" />
					</f:facet>
							<h:outputText value="#{current.rltDateFin}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{tiersmsgs['utilisateurs.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.new']}" action="#{TiersComponent.newTiersUtilisateurses(TiersComponent.tiers.tieTiers)}"/>
			<p:dataTable id="utilisateurses" value="#{TiersComponent.listTiersUtilisateurses(TiersComponent.tiers.tieTiers)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.selectTiersUtilisateurses(TiersComponent.tiers.tieTiers, current.usrUser)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.editTiersUtilisateurses(TiersComponent.tiers.tieTiers, current.usrUser)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersComponent.confirmDeleteTiersUtilisateurses(TiersComponent.tiers.tieTiers, current.usrUser)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['utilisateurs.usruser.title']}" />
					</f:facet>
							<h:outputText value="#{current.usrUser}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['utilisateurs.usrpassword.title']}" />
					</f:facet>
							<h:outputText value="#{current.usrPassword}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['utilisateurs.usrservice.title']}" />
					</f:facet>
							<h:outputText value="#{current.usrService}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['utilisateurs.usrmail.title']}" />
					</f:facet>
							<h:outputText value="#{current.usrMail}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersmsgs['utilisateurs.usrenabled.title']}" />
					</f:facet>
							<h:outputText value="#{current.usrEnabled}"/>
				</p:column>
			</p:dataTable>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>